<!-- 系统自动生成 Date:2021-06-11 10:29 -->
<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增【请填写功能名称】" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-spu-add"  class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "addTime"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="addTime"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "brandId"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="brandId"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "classifyOne"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="classifyOne"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "classifyOneName"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="classifyOneName"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "classifyThree"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="classifyThree"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "classifyThreeName"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="classifyThreeName"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "classifyTwo"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="classifyTwo"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "classifyTwoName"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="classifyTwoName"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "firstName"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="firstName"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "imgsCover"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="imgsCover"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "isHomeShow"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="isHomeShow"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "itemStatus"/>：
        </label>
        <div class="col-sm-8">
              <#list dict.getType('')>
                <#items as d>
                    <div class="radio-box">
                        <input type="radio" id="itemStatus" name="itemStatus" value="${d.dictValue}"
                               <#if d.dictValue == spu.itemStatus?default("") >checked</#if> />
                        <label for="${(d.id)?default('')}">${d.dictLabel}</label>
                    </div>
                </#items>
            </#list>
        </div>
    </div>
     <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "name"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="name"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "shopId"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="shopId"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "spuComments"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="spuComments"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "spuSales"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="spuSales"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "spuVisits"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="spuVisits"  />
        </div>
    </div>
</@f.form>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "/spu"
    /**表单验证*/
    <@compress single_line=true>
    $("#form-spu-add").validate({
        focusCleanup: true
    });
    </@compress>

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/add", $('#form-spu-add').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>